@font-face {
    font-family: 'Akaltun';
    src: url('http://kino.akaltun.cn/blog/assets/akaltun1017.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Akaltun';
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: linear-gradient(to top, #fff1eb 0%, #ace0f9 100%);
}

header {
    background-image: linear-gradient(to right, #eea2a2 0%, #bbc1bf 19%, #57c6e1 42%, #b49fda 79%, #7ac5d8 100%);
    color: #fff;
    padding: 15px 20px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 1.8em;
}

.button {
    display: inline-block;
    padding: 10px 5px;
    margin: 2px;
    background-color: #5cb85c;
    color: #fff;
    font-size: 0.8em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.button:hover {
    background-color: #4cae4c;
    transform: scale(1.05);
}

.button:active {
    transform: scale(0.95);
}

main {
    padding: 7px;
    box-sizing: border-box;
}

.article-list {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.article-item {
    flex: 1 1 calc(50% - 20px);
    background: rgba(255, 255, 255, 0.4);
    padding: 25px;
    border-radius: 18px;
    box-sizing: border-box;
    transition: box-shadow 0.3s, transform 0.3s;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 10px;
}

.article-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.article-item h2 {
    font-size: 1.0em;
    margin: 0 0 10px 0;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 60px;
    line-height: 20px;
    display: block;
    text-align: center;
}

.article-item p {
    flex: 1;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.article-item .meta time {
    font-size: 0.6em;
    color: #000;
}

a, a:link, a:visited, a:hover, a:active {
    text-decoration: none;
    color: inherit;
}

.article-item a h2, .article-item a time {
    color: #000;
}
